import React, { Component } from 'react';
import { Route } from 'react-router-dom';

import styles from './style.scss';
import Signin from './Signin';
import Signup from './Signup';

export default class LoginLayout extends Component {
    render() {
        const path = this.props.match.path;
        return (
            <div className={styles.layout}>
                <div className={styles.header}>
                    <a href="/" className={styles.logo}>慧招商云平台</a>
                </div>
                <Route path="/login" exact component={Signin} />
                <Route path="/join" exact component={Signup} />
            </div>
        );
    }
}
